.container
	.row
		.page-header
			h1 #{title}
			samll 重度科幻迷

.navbar.navbar-default.navbar-fixed-bottom
	.container
		.navbar-header
			a.navbar-brand(href="/") 重度科幻迷
		if user
			p.navbar-text.navbar-right
				span 欢迎您，#{user.name}
				span &nbsp;|&nbsp;
				a.navbar-link(href="/logout") 登出
		else
			p.navbar-text.navbar-right
				a.navbar-link(href="#", data-toggle="modal", data-target="#signupModal") 注册
				span &nbsp;|&nbsp;
				a.navbar-link(href="#", data-toggle="modal", data-target="#signinModal") 登录

#signupModal.modal.fade(aria-hidden="true", role="dialog", aria-labelledby="myModal")
	.modal-dialog
		.modal-content
			form(method="post", action="/user/signup")
				.modal-header 注册
				.modal-body 
					.form-group
						label(for="signupName") 用户名
						input#signupName.form-control(name="user[name]",type="text")
					.form-group
						label(for="signupPassword") 密码
						input#signupPassword.form-control(name="user[password]",type="text")
				.modal-footer
					button.btn.btn-success(type="submit") 提交
#signinModal.modal.fade(aria-hidden="true", role="dialog", aria-labelledby="myModal")
	.modal-dialog
		.modal-content
			form(method="post", action="/user/signin", role="form")
				.modal-header 登录
				.modal-body 
					.form-group
						label(for="signinName") 用户名
						input#signupName.form-control(name="user[name]",type="text")
					.form-group
						label(for="signinPassword") 密码
						input#signupPassword.form-control(name="user[password]",type="text")
				.modal-footer
					button.btn.btn-success(type="submit") 提交
					


